<div id="tabs">
		<div class="active color"><*formtitle*></div><div class="activeround"></div>
	{if !$disable_add}
	<div id="listadd" style="float:right;"><img src="images/cancel.gif"> <a onclick="showlist();" style="cursor:pointer;">закрыть</a></div>
	{/if}
</div>
<div id="form">
<div id="formloader" style="display:none;">идёт загрузка формы</div>
<div id="stloader" style="display:none;">идёт загрузка структуры</div>
<div id="formfields">
	<form name="<*name*>" method="<*method*>" action="<*action*>" <*enctype*> id="form_<*name*>">
	<*hidden_fields*>
		<div id="fields">
		<table>
		<col width="138">
		{if $error_message}
			<tr>
			<td style="color:red;">Ошибка SQL:</td>
			<td style="color:red;"><*error_message*></td>
			</tr>
		{/if}
	
		{for source=controls}
			<tr id="<*rowid*>" {if !$visible}style="display:none;"{/if}>
			{if $controltype=='checkbox'}
				<td colspan="2" style="padding-bottom:5px;"><*code*> <label for="input_<*name*>"><*title*></label></td>
			{else}
				<td style="padding-bottom:5px;"><*title*></td>
				<td><*code*></td>
			{/if}
			</tr>
			{if $message}
			<tr>
			<td></td>
			<td style="color:red;"><*message*></td>
			</tr>
			{/if}
		{/for}

		</table>
		</div>
		<div id="buttons">
			<*buttons*>					
		</div>
	</form>
	<script>
	<*script*>
	</script>
	<input type="Hidden" id="jshidden" value="<*script*>">
</div>
</div>
<div id="formshadow"></div>




